<?php
/**
 * 73YC 话题分类文件
 * ============================================================================
 * * 版权所有 20013-* 梅州络客网络科技有限公司，并保留所有权利。
 * 网站地址: http://www.alork.com；
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和
 * 使用；不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
 * $Author: liubo $
 * $Id: index.php 17217 2013-10-19 06:29:08Z liubo $
*/
define('IN_ECS', true);

require(dirname(__FILE__) . '/includes/init.php');

if ((DEBUG_MODE & 2) != 2)
{
    $smarty->caching = true;
}

$string = base64_decode('YTozOntzOjg6ImtleXdvcmRzIjtzOjY6IumprOWPryI7czoxMDoiaW1hZ2VGaWVsZCI7czowOiIiO3M6MTg6InNlYXJjaF9lbmNvZGVfdGltZSI7aToxNDExMzY5OTAyO30=');
$act=!empty($_GET['act'])?$_GET['act']:'1';
$cache_id = sprintf('%X', crc32("topic.dwt" . '-' .$act. '-' . $_CFG['lang']));

if (!$smarty->is_cached('topic.dwt', $cache_id))
{









}

$cate_1[] = array('pic'=>'index/topic_pic/cate_1_1.png','name'=>'画渣','url'=>'tvd_list.php?cid=5');
$cate_1[] = array('pic'=>'index/topic_pic/cate_1_2.png','name'=>'画霸','url'=>'tvd_list.php?cid=6');
$cate_1[] = array('pic'=>'index/topic_pic/cate_1_3.png','name'=>'艺考狗','url'=>'tvd_list.php?cid=7');
$cate_1[] = array('pic'=>'index/topic_pic/cate_1_4.png','name'=>'腐女','url'=>'tvd_list.php?cid=8');
$cate_1[] = array('pic'=>'index/topic_pic/cate_1_5.png','name'=>'美院仔','url'=>'tvd_list.php?cid=9');
$cate_1[] = array('pic'=>'index/topic_pic/cate_1_6.png','name'=>'萌妹子','url'=>'tvd_list.php?cid=10');
$cate_1[] = array('pic'=>'index/topic_pic/cate_1_7.png','name'=>'宅男','url'=>'tvd_list.php?cid=11');
// $cate_1[] = array('pic'=>'index/topic_pic/cate_1_8.png','name'=>'设计师','url'=>'tvd_list.php?cid=12');
$cate_1[] = array('pic'=>'index/topic_pic/cate_1_9.png','name'=>'大师','url'=>'tvd_list.php?cid=13');

// $cate_2[] = array('pic'=>'index/topic_pic/cate_2_1.png','name'=>'创意园','url'=>'tvd_list.php?cid=14');
$cate_2[] = array('pic'=>'index/topic_pic/cate_2_2.png','name'=>'毕业展','url'=>'tvd_list.php?cid=15');
// $cate_2[] = array('pic'=>'index/topic_pic/cate_2_3.png','name'=>'美术馆','url'=>'tvd_list.php?cid=16');
$cate_2[] = array('pic'=>'index/topic_pic/cate_2_4.png','name'=>'美院','url'=>'tvd_list.php?cid=17');
// $cate_2[] = array('pic'=>'index/topic_pic/cate_2_5.png','name'=>'漫展','url'=>'tvd_list.php?cid=18');
$cate_2[] = array('pic'=>'index/topic_pic/cate_2_6.png','name'=>'写生','url'=>'tvd_list.php?cid=19');
// $cate_2[] = array('pic'=>'index/topic_pic/cate_2_7.png','name'=>'画廊','url'=>'tvd_list.php?cid=20');

// $cate_3[] = array('pic'=>'index/topic_pic/cate_3_1.png','name'=>'小清新','url'=>'tvd_list.php?cid=21');
$cate_3[] = array('pic'=>'index/topic_pic/cate_3_2.png','name'=>'文艺范','url'=>'tvd_list.php?cid=22');
$cate_3[] = array('pic'=>'index/topic_pic/cate_3_3.png','name'=>'重口味','url'=>'tvd_list.php?cid=23');
// $cate_3[] = array('pic'=>'index/topic_pic/cate_3_4.png','name'=>'影迷','url'=>'tvd_list.php?cid=24');
$cate_3[] = array('pic'=>'index/topic_pic/cate_3_5.png','name'=>'技法控','url'=>'tvd_list.php?cid=25');
$cate_3[] = array('pic'=>'index/topic_pic/cate_3_6.png','name'=>'动漫迷','url'=>'tvd_list.php?cid=26');
$cate_3[] = array('pic'=>'index/topic_pic/cate_3_7.png','name'=>'美美哒','url'=>'tvd_list.php?cid=27');

// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_1.png','name'=>'国画','url'=>'tvd_list.php?cid=29');
$cate_4[] = array('pic'=>'index/topic_pic/cate_4_2.png','name'=>'油画','url'=>'tvd_list.php?cid=30');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_3.png','name'=>'版画','url'=>'tvd_list.php?cid=31');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_4.png','name'=>'雕塑','url'=>'tvd_list.php?cid=32');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_5.png','name'=>'壁画','url'=>'tvd_list.php?cid=33');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_6.png','name'=>'工艺','url'=>'tvd_list.php?cid=34');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_7.png','name'=>'陶艺','url'=>'tvd_list.php?cid=35');
$cate_4[] = array('pic'=>'index/topic_pic/cate_4_8.png','name'=>'技法','url'=>'tvd_list.php?cid=36');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_9.png','name'=>'摄影','url'=>'tvd_list.php?cid=37');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_10.png','name'=>'DIY','url'=>'tvd_list.php?cid=51');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_11.png','name'=>'视觉传达','url'=>'tvd_list.php?cid=52');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_12.png','name'=>'服装设计','url'=>'tvd_list.php?cid=53');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_13.png','name'=>'信息设计','url'=>'tvd_list.php?cid=54');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_14.png','name'=>'平面设计','url'=>'tvd_list.php?cid=38');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_15.png','name'=>'插画设计','url'=>'tvd_list.php?cid=39');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_16.png','name'=>'动漫设计','url'=>'tvd_list.php?cid=40');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_17.png','name'=>'建筑设计','url'=>'tvd_list.php?cid=41');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_18.png','name'=>'环境艺术','url'=>'tvd_list.php?cid=42');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_19.png','name'=>'工业设计','url'=>'tvd_list.php?cid=43');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_20.png','name'=>'数字媒体','url'=>'tvd_list.php?cid=44');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_21.png','name'=>'包装设计','url'=>'tvd_list.php?cid=45');
// $cate_4[] = array('pic'=>'index/topic_pic/cate_4_22.png','name'=>'UI设计','url'=>'tvd_list.php?cid=46');
$cate_4[] = array('pic'=>'index/topic_pic/cate_4_23.png','name'=>'素描','url'=>'tvd_list.php?cid=47');
$cate_4[] = array('pic'=>'index/topic_pic/cate_4_24.png','name'=>'色彩','url'=>'tvd_list.php?cid=48');
$cate_4[] = array('pic'=>'index/topic_pic/cate_4_25.png','name'=>'速写','url'=>'tvd_list.php?cid=49');
$cate_4[] = array('pic'=>'index/topic_pic/cate_4_26.png','name'=>'人体写生','url'=>'tvd_list.php?cid=50');





$cate_5[] = array('pic'=>'index/topic_pic/cate_5_1.png','name'=>'每日福利','url'=>'tvd_list.php?cid=55');
$cate_5[] = array('pic'=>'index/topic_pic/cate_5_2.png','name'=>'艺术思维','url'=>'tvd_list.php?cid=56');
$cate_5[] = array('pic'=>'index/topic_pic/cate_5_3.png','name'=>'大师野史','url'=>'tvd_list.php?cid=57');
$cate_5[] = array('pic'=>'index/topic_pic/cate_5_4.png','name'=>'行为艺术','url'=>'tvd_list.php?cid=58');
$cate_5[] = array('pic'=>'index/topic_pic/cate_5_5.png','name'=>'漫画分享会','url'=>'tvd_list.php?cid=59');
$cate_5[] = array('pic'=>'index/topic_pic/cate_5_6.png','name'=>'女仆par','url'=>'tvd_list.php?cid=60');
$cate_5[] = array('pic'=>'index/topic_pic/cate_5_7.png','name'=>'动漫周边','url'=>'tvd_list.php?cid=61');



// $banner[] = array('ad_code'=>'index/1.png','name'=>'每日福利','adlink'=>'1');
// $banner[] = array('ad_code'=>'index/2.png','name'=>'艺术思维','adlink'=>'1');
// $banner[] = array('ad_code'=>'index/3.png','name'=>'大师野史','adlink'=>'1');
// $banner[] = array('ad_code'=>'index/4.png','name'=>'行为艺术','adlink'=>'1');
// $banner[] = array('ad_code'=>'index/5.png','name'=>'漫画分享会','adlink'=>'1');
// $banner[] = array('ad_code'=>'index/6.png','name'=>'女仆par','adlink'=>'1');

$banner =get_ad(38);



$smarty->assign('banner',$banner);
$smarty->assign('cate_1',$cate_1);
$smarty->assign('cate_2',$cate_2);
$smarty->assign('cate_3',$cate_3);
$smarty->assign('cate_4',$cate_4);
$smarty->assign('cate_5',$cate_5);
$smarty->assign('act',"cate");
$smarty->assign('topic',"1");
$smarty->display("topic.dwt", $cache_id);


/**
 * 获得广告位
 *
 * @access  private
 * @return  array
 */
    
    function get_ad($position_id = 0){
        if(!$position_id) return false;
        $position_id = intval($position_id);
        $sql = "SELECT * FROM " . $GLOBALS['ecs']->table('ad') . " WHERE position_id = '$position_id' ORDER BY ad_name ASC ";
        $ad = $GLOBALS['db']->getAll($sql);

        foreach ($ad as $key => $value) {
            $ad[$key]['pic'] = $GLOBALS['egg_img']."data/afficheimg/".$value['ad_code'];
        }



        return $ad;
    }
 ?>